


<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		
		<link rel="stylesheet" type="text/css" href="orderDetail.css"/>
	</head>
	<link rel="stylesheet" type="text/css" href="../../css/mui.css"/>
	<link rel="stylesheet" type="text/css" href="../../css/iconfont.css"/>
	<link rel="stylesheet" type="text/css" href="cotagory.css"/>
	<style type="text/css">
	 
	</style>
	<body style='padding-top: 2.5rem ;' ;>
		
 <div class="main">
  <div class='add list' bindtap="powerDrawer" data-statu="open">
    <div class='left fl'>
      <div class='iconfont icon-add'></div>
      <div class='name'>增加类别</div>
    </div>
  </div>
  <div class='gap'></div>

  <scroll-div scroll-y style="height:{{height}};" bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll">
    <div wx:for="{{arr}}"  wx:key="" class="{{index%2==0?'list':'list even'}}">
      <div class='left fl'>
        <div class='iconfont icon-cut' bindtap='delCate' id='{{item.type_id}}' data-id='{{index}}' ></div>
        <div class='name'bindtap='choice' id='{{item.type_id}}' data-id="{{index}}" >{{item.type_name}}</div>
        <!-- <div class='num'>{{item.num}}</div> -->
      </div>
      <div class='right iconfont icon-edit fr'   bindtap="powerDrawer1" data-id='{{index}}' data-statu="open"></div>
    </div>
  </scroll-div>
</div>

<!--mask-->  
<div class="drawer_screen" bindtap="powerDrawer" data-statu="close" wx:if="{{showModalStatus}}"></div>  
<!--content-->  
<!--使用animation属性指定需要执行的动画-->  
<div animation="{{animationData}}" class="drawer_box" wx:if="{{showModalStatus}}">  
  <form bindsubmit='addCate' id='{{shop_id}}'  wx:if="{{edit}}">
    <div class="drawer_title">增加类别</div>
    <div class="drawer_content">  
        <input type='text' class="col-1" name='typename' ></input>  
    </div>  
    <button class="btn_ok" form-type='submit' bindtap="powerDrawer" data-statu="close">确定</button>  
    <div class="btn_ok cancel" bindtap="powerDrawer" data-statu="close">取消</div>  
  </form>
  <form bindsubmit='updateCate' id='{{type_info.type_id}}' wx:if="{{!edit}}">
    <div class="drawer_title">修改类别</div>
    <div class="drawer_content">  
        <input type='text' class="col-1" name='typename' value='{{type_info.type_name}}' ></input>  
    </div>  
    <button class="btn_ok" form-type='submit' bindtap="powerDrawer1" data-statu="close">确定</button>  
    <div class="btn_ok cancel" bindtap="powerDrawer1" data-statu="close">取消</div>  
  </form>
</div> 

<!-- <div class="drawer_screen1" bindtap="powerDrawer1" data-statu="close" wx:if="{{edit}}"></div>  
<div animation="{{animationData}}" class="drawer_box1" wx:if="{{edit}}">  
  <form bindsubmit='updateCate' id='{{type_info.type_id}}'>
  <div class="drawer_title">修改类别</div>
  <div class="drawer_content">  
      <input type='text' class="col-1" name='typename' value='{{type_info.type_name}}' ></input>  
  </div>  
  <button class="btn_ok" form-type='submit' bindtap="powerDrawer1" data-statu="close">确定</button>  
  <div class="btn_ok cancel" bindtap="powerDrawer1" data-statu="close">取消</div>  
  </form>
</div>  -->


	</body>
</html>
<script type="text/javascript" src="orderDetail.js">
	
</script>

